<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('web/_header', TEMPLATE_INCLUDEPATH)) : (include template('web/_header', TEMPLATE_INCLUDEPATH));?>

<div class="main">
    <form id="dataform" action="" method="post" class="form-horizontal form">
        <div class="panel panel-default">
            <div class="panel-heading">
               云支付 
            </div>
            <div class="panel-body">
                <div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">云支付</label>
					<div class="col-sm-9 col-xs-12">
						<div class="alert alert-warning">
							云支付，含微信支付，支付宝，银联，信用卡等多种支付方式, <a href="http://www.yunpay.net.cn/yunpay.php" target="_blank">申请及详情请查看这里</a>.
						</div>
                        <div class="alert alert-danger">
							此插件为第三方插件,出现资金安全问题芸众商城不承担任何责任.
						</div>
						<label class="radio-inline">
                            <input type="radio" name="yunpay[switch]" <?php  if($pay['switch']) echo "checked";?> ng-model="yunpay.switch" value="true"/>
							开启
						</label>
						<label class="radio-inline">
							<input type="radio" name="yunpay[switch]" <?php  if(!$pay['switch']) echo "checked";?> ng-model="yunpay.switch" value="false"/>
							关闭
						</label>
						<span class="help-block">是否使用云支付</span>
						
					</div>
				</div>
				<div id="yunpay">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">云支付账号</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="yunpay[account]" class="form-control" value="<?php  echo $pay['account'];?>" autocomplete="off">
							
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">合作者身份PID</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="yunpay[partner]" class="form-control" value="<?php  echo $pay['partner'];?>" autocomplete="off"/>
							
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label">校验密钥</label>
						<div class="col-sm-9 col-xs-12">
							<input type="text" name="yunpay[secret]" class="form-control" value="<?php  echo $pay['secret'];?>" autocomplete="off"/>
							
						</div>
					</div>
                    <div class="form-group col-sm-12 center">
						<label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
						<div class="col-sm-9 col-xs-12">
                            <input name="do-submit" type="submit" value="提交" class="btn btn-primary col-lg-1" />
                            <input type="hidden" name="token" value="<?php  echo $_W['token'];?>" />
						</div>
                    </div>
					
				</div>
            </div>
        </div>
    </form>
</div>
<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('web/_footer', TEMPLATE_INCLUDEPATH)) : (include template('web/_footer', TEMPLATE_INCLUDEPATH));?>

